package net.towee.model.repo;

import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * This container consists of document types
 * @author   c58
 */
public interface DocumentTypesContainer extends IsSerializable  {
	/**
	 * Add new document type
	 * @param type
	 */
	void addDocumentType(DocumentType type);
	
	/**
	 * Delete document type from container
	 * @param type
	 */
	void removeDocumentType(DocumentType type);
	
	/**
	 * @param type
	 * @return true if container has some document type
	 */
	boolean hasDocumentType(DocumentType type);

	/**
	 * @return list of attached types
	 */
	List<DocumentType> getTypesList();
}
